<template>
  <div style="padding: 20px">
    <el-tabs type="border-card">
      <el-tab-pane label="任务配置">
        <el-table :data="list" style="width: 100%">
          <el-table-column prop="name" label="任务名称" width="width">
          </el-table-column>
          <el-table-column prop="points" label="完成任务奖励积分" width="width">
          </el-table-column>
          <el-table-column
            prop="max_perday"
            label="每天奖励次数上限"
            width="width"
          >
          </el-table-column>
          <el-table-column prop="daily" label="任务类型" width="width">
            <template slot-scope="scope">
              {{ scope.row.daily ? "日常任务" : "单次任务" }}
            </template>
          </el-table-column>
        </el-table>
        <el-button type="primary" style="margin-top: 20px" size="small"
          >保存</el-button
        >
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        { id: 1, name: "每日签到", points: 5, daily: 1, max_perday: 1 },
        {
          id: 2,
          name: "绑定微信账号",
          points: 0,
          daily: 0,
          max_perday: 0,
        },
        {
          id: 3,
          name: "每日刷新简历",
          points: 10,
          daily: 1,
          max_perday: 5,
        },
        { id: 4, name: "上传头像", points: 5, daily: 0, max_perday: 0 },
        {
          id: 5,
          name: "简历完整度达到60%",
          points: 30,
          daily: 0,
          max_perday: 0,
        },
        {
          id: 6,
          name: "简历完整度达到90%",
          points: 50,
          daily: 0,
          max_perday: 0,
        },
        {
          id: 7,
          name: "每日投递简历",
          points: 5,
          daily: 1,
          max_perday: 1,
        },
        { id: 8, name: "举报职位", points: 10, daily: 1, max_perday: 1 },
        { id: 9, name: "注册账号", points: 0, daily: 0, max_perday: 0 },
      ],
    };
  },
};
</script>

<style scoped></style>
